package com.junlaninfo;

import java.util.concurrent.locks.ReentrantLock;

/**
 * Created by 辉 on 2020/8/31.
 * 演示公平锁和非公平锁
 */
public class Test1 {
    private  static ReentrantLock lock=new ReentrantLock();
    public static void main(String[] args) {
        lock.lock();
        lock.unlock();

    }
}
